package com.wyl.selenium.config.converter;

import org.springframework.core.convert.converter.Converter;

/**
 * @Description
 * @Author WuYiLong
 * @Date 2023/11/17 17:09
 */
public class NumberToStringConverter implements Converter<Number, String> {

    @Override
    public String convert(Number source) {
        if(source != null) {
            String s = String.valueOf(source);
            if(s.length()>16) {
                return s;
            }
        }
        return source.toString();
    }
}
